package demo;

public class shikuluo {
    static uses[] demo;
    static int index;
    public static void main(String[] args) {

        demo = new uses[10];
        uses uses = new uses();
        uses.setId(10);
        uses.setScore(100);
        demo[0] = uses;
        index = 1;
        setUser(111,123);
        System.out.println(demo[index - 1].getId() + "："+demo[index - 1].getScore());
    }

    static void setUser(int id,int scorce) {
        uses uses = new uses();
        uses.setScore(id);
        uses.setId(scorce);
        demo[index++] = uses;

    }
}
class uses {
    int score;
    int id;

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
